/*
 * Copyright (c) 2010 Vadim Zhukov <persgray@gmail.com>
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#ifndef OW_SENSOR_PARAMS_H
#define OW_SENSOR_PARAMS_H


union sensor_params {
	struct {
		char		 buf[8192];
		size_t		 bufpos;
		const char	*addr;
		int		 family;
		int		 truncated;
	} sp_log_stream;
	struct {
		char	*bufname;
		char	*cache;
		size_t	 cache_size;
		size_t	 cache_pos;	/* positioned on the '\n' chars */
	} sp_syslog_bsd;
#ifdef HAS_BSD_SENSORS
	struct {
		/* Cache sensor's "address" */
		int	dev;
		int	stype;
		int	sindex;
	} sp_bsd;
#endif
};

#endif /* OW_SENSOR_PARAMS_H */
